export const option = {
  calcHeight: 30,
  height: 'calc(100vh - 560px)',
  tip: false,
  searchShow: true,
  searchMenuSpan: 24,
  searchMenuPosition: 'right',
  border: true,
  index: true,
  viewBtn: false,
  editBtn: false,
  delBtn: false,
  selection: true,
  addBtn: false,
  indexLabel: '序号',
  columnBtn: false,
  searchLabelWidth: 150,
  column: [
    {
      label: '送货单',
      prop: 'scmDeliverySheetNo',
      search: true,
      searchOrder: 1
    },
    {
      label: '客户名称',
      prop: 'vendorName'
    },
    {
      label: '客户订单',
      prop: 'customerOrderNo',
      search: true,
      searchOrder: 2
    },
    {
      label: '行号',
      prop: 'sheetLot'
    },
    {
      label: '客户物料编码',
      prop: 'vendorPartNo',
      searchOrder: 3,
      search: true
    },
    {
      label: '客户物料名称',
      prop: 'vendorPartName'
    },
    {
      label: '客户物料型号',
      prop: 'vendorPartModel',
      searchOrder: 4,
      search: true
    },
    {
      label: '包装层级',
      prop: 'packLevel',
      search: true,
      type: 'select',
      searchOrder: 5,
      dicUrl: '/api/blade-system/dict/dictionary?code=scm_pack_level',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    },
    {
      label: '条码',
      prop: 'packNo',
      searchOrder: 6,
      search: true
    },
    {
      label: '包装数量',
      prop: 'packQuantity'
    },
    {
      label: '条码生成时间',
      prop: 'packNoGenerationTime',
      search: true,
      searchOrder: 9,
      searchSpan: 8,
      searchType: 'datetimerange',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss',
      startPlaceholder: '开始时间',
      endPlaceholder: '结束时间'
    },
    {
      label: '打印状态',
      prop: 'printStatus',
      searchOrder: 7,
      search: true,
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=scm_printed_sheet_status',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    },
    {
      label: '条码状态',
      prop: 'packStatus',
      searchOrder: 8,
      search: true,
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=scm_pack_status',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    }
  ]
};

export const detailOption = {
  submitBtn: false,
  emptyBtn: false,
  detail: false,
  group: [
    {
      label: '送货明细',
      arrow: false,
      prop: 'baseInfo',
      icon: 'el-icon-vertical-bar',
      labelWidth: 100,
      column: [{ label: '', prop: 'send', labelWidth: 0, span: 24 }]
    },
    {
      label: '包装配置',
      arrow: false,
      prop: 'baseInfo',
      icon: 'el-icon-vertical-bar',
      labelWidth: 100,
      column: [{ label: '', prop: 'pack', labelWidth: 0, span: 24 }]
    },
    {
      label: '条码明细',
      arrow: false,
      prop: 'baseInfo',
      icon: 'el-icon-vertical-bar',
      labelWidth: 100,
      column: [{ label: '', prop: 'detail', labelWidth: 0, span: 24 }]
    }
  ]
};

export const sendTableOption = {
  columnBtn: false,
  refreshBtn: false,
  addBtn: false,
  editBtn: false,
  menu: false,
  index: true,
  labelWidth: 130,
  menuWidth: 100,
  maxHeight: 300,
  border: true,
  indexLabel: '序号',
  column: [
    {
      label: '客户订单',
      prop: 'sourceNo'
    },
    {
      label: '行号',
      prop: 'sourceSheetLot'
    },
    {
      label: '客户物料编码',
      prop: 'vendorPartNo'
    },
    {
      label: '客户物料名称',
      prop: 'vendorPartName'
    },
    {
      label: '客户物料型号',
      prop: 'vendorPartModel'
    },
    {
      label: '订单数量',
      prop: 'sourceOrderQuantity'
    },
    {
      label: '已发货数量',
      prop: 'deliveredQuantity'
    },
    {
      label: '未发货数量',
      prop: 'unDeliveredQuantity'
    },
    {
      label: '本次发货数量',
      prop: 'currentDeliveryQuantity'
    },
    {
      label: '生产日期',
      prop: 'vendorDate'
    },
    {
      label: '生产批次',
      prop: 'vendorLotNo'
    }
  ]
};

export const barcodeDetailOption = {
  columnBtn: false,
  refreshBtn: false,
  addBtn: false,
  editBtn: false,
  menu: false,
  labelWidth: 130,
  menuWidth: 100,
  maxHeight: 300,
  border: true,
  index: true,
  indexLabel: '序号',
  column: [
    {
      label: '小包条码',
      prop: 'smallPackNo',
      headerSlot: true
    },
    {
      label: '小包包装数量',
      prop: 'smallPackQuantity',
      headerSlot: true
    },
    {
      label: '大包条码',
      prop: 'bigPackNo',
      headerSlot: true
    },
    {
      label: '大包包装数量',
      prop: 'bigPackQuantity',
      headerSlot: true
    },
    {
      label: '外箱条码',
      prop: 'outerBoxPackNo',
      headerSlot: true
    },
    {
      label: '外箱包装数量',
      prop: 'outerBoxPackQuantity',
      headerSlot: true
    }
  ]
};
